package org.qydjk.common.pojo.product;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 产品规格实体
 * Created by Edward_yang on 2017/12/21
 */
@Entity
@Table(name = "qy_product_specification", catalog = "qydjk")

public class ProductSpecification implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String logo;
	private Integer productId;
	private BigDecimal price;
	private Integer soldOutCount;
	private Integer repertory;
	private Integer ord;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public ProductSpecification() {
	}

	/** full constructor */
	public ProductSpecification(String name, String logo, BigDecimal price, Integer soldOutCount, Integer repertory,
			Integer ord, Date createTime, Date updateTime) {
		this.name = name;
		this.logo = logo;
		this.price = price;
		this.soldOutCount = soldOutCount;
		this.repertory = repertory;
		this.ord = ord;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", length = 50)

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "logo", length = 200)

	public String getLogo() {
		return this.logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	@Column(name = "price", precision = 12)

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Column(name = "sold_out_count")

	public Integer getSoldOutCount() {
		return this.soldOutCount;
	}

	public void setSoldOutCount(Integer soldOutCount) {
		this.soldOutCount = soldOutCount;
	}

	@Column(name = "repertory")

	public Integer getRepertory() {
		return this.repertory;
	}

	public void setRepertory(Integer repertory) {
		this.repertory = repertory;
	}

	@Column(name = "ord")

	public Integer getOrd() {
		return this.ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	@Column(name = "create_time", length = 19)

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "product_id")
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
}